import { houseRomms } from "@/assets/data/house-rooms";
import { PageParamsModel } from "@/model/page-params-model";

const houseListOptions: object = {
  searchMenuPosition: "center",
  searchMenuSpan: 4,
  viewBtn: false,
  addBtn: false,
  editBtn: false,
  delBtn: true,
  column: [
    {
      label: "ID",
      prop: "id",
      width: 100,
    },
    {
      label: "户型图",
      width: 100,
      prop: "image",
      type: "upload",
      alone: true,
      accept: "image/*",
      limit: 1,
      oss: "qiniu",
    },
    {
      label: "户型",
      align: "left",
      prop: "name",
      search: true,
    },
    {
      label: "类型",
      width: 100,
      prop: "room",
      type: "select",
      search: true,
      dicData: houseRomms,
    },
  ],
};

export default houseListOptions;

export class houseListSearchModel extends PageParamsModel {
  name?: string = ""; // 名称
  type?: string = ""; // 户型
}
